home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / cvs-1.8 / cvs-1 / cvs-1.8.1 / os2 / Makefile < prev    next >
Encoding:
Makefile  |  1996-05-06  |  9.4 KB  |  309 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for OS/2.  Generated from Makefile.in when CVS is
  3. # configured for a dist-build.  Configure never gets run on OS/2, so
  4. # we must include the generated Makefile in the distribution.  See the
  5. # `dist-dir' rule.
  6.  
  7. project: cvs.exe
  8. # .SUFFIXES .c .obj .exe
  9.  
  10. # path slash
  11. # Maintainers: always leave this set to "/", because `make dist' has
  12. # to work on Unix systems.  See os2/README to find out why we have
  13. # this var.
  14. SL = /
  15.  
  16. # Directory in which to install executables.
  17. install_dir = s:${SL}gnu${SL}util
  18.  
  19. # srcdir is usually "."
  20. srcdir     = .
  21.  
  22. # top_srcdir is usually ".."
  23. top_srcdir = ..
  24.  
  25. lib_dir     = ..${SL}lib
  26. cvs_srcdir = ..${SL}src
  27.  
  28. # Do we need these?
  29. # prefix = /usr/local
  30. # exec_prefix = ${prefix}
  31.  
  32. # taken straight from the example project
  33. LIB = s:${SL}ibmcpp${SL}lib;s:${SL}toolkt21${SL}os2lib;
  34. CINC = -Is:${SL}ibmcpp${SL}include -Is:${SL}toolkt21${SL}c${SL}os2h
  35. # This says we are building an object file, not a full executable.
  36. OBJ_CFLAGS = -C+
  37. CFLAGS = -W3 -Wpro+rea+tru+use+ -Ti+ -Ss+ -Gd+ -Gm+ -G4 -Q+ -Sm ${CINC} \
  38.   -I${srcdir} -I${lib_dir} -I${cvs_srcdir} \
  39.   -DIBM_CPP -DHAVE_CONFIG_H \
  40.   -DTCPIP_IBM -Is:${SL}ibmtcpip${SL}include
  41.  
  42. # needed to make command-line wildcard expansion work right.  That's
  43. # right, DOS-descendants handle this from the program, not the shell.
  44. ARGVLIB = s:${SL}ibmcpp${SL}lib${SL}setargv.obj
  45.  
  46. # TCP/IP stuff
  47. TCPIPLIB = s:${SL}ibmtcpip${SL}lib${SL}tcp32dll.lib    s:${SL}ibmtcpip${SL}lib${SL}so32dll.lib
  48.  
  49.  
  50. # headers specific to OS/2
  51.  
  52. # We list OS2_HEADERS so we know what to include when we make dist-dir
  53. # here.
  54. OS2_HEADERS = \
  55.        ${srcdir}${SL}tcpip.h \
  56.        ${srcdir}${SL}config.h \
  57.        ${srcdir}${SL}options.h \
  58.        ${srcdir}${SL}pwd.h \
  59.        ${srcdir}${SL}dirent.h \
  60.        ${srcdir}${SL}rcmd.h \
  61.        ${srcdir}${SL}popen.h
  62.  
  63. # headers we use from the common src dir, ..${SL}src
  64. COMMON_HEADERS = \
  65.        ${cvs_srcdir}${SL}client.h \
  66.        ${cvs_srcdir}${SL}cvs.h \
  67.        ${cvs_srcdir}${SL}rcs.h \
  68.        ${cvs_srcdir}${SL}hash.h \
  69.        ${cvs_srcdir}${SL}myndbm.h \
  70.        ${cvs_srcdir}${SL}patchlevel.h \
  71.        ${cvs_srcdir}${SL}update.h \
  72.        ${cvs_srcdir}${SL}server.h \
  73.        ${cvs_srcdir}${SL}error.h
  74.  
  75. # sources specific to OS/2
  76. OS2_SOURCES = \
  77.        ${srcdir}${SL}mkdir.c \
  78.        ${srcdir}${SL}pwd.c \
  79.        ${srcdir}${SL}filesubr.c \
  80.        ${srcdir}${SL}dirent.c \
  81.        ${srcdir}${SL}run.c \
  82.        ${srcdir}${SL}stripslash.c \
  83.        ${srcdir}${SL}rcmd.c \
  84.        ${srcdir}${SL}waitpid.c \
  85.        ${srcdir}${SL}popen.c \
  86.        ${srcdir}${SL}porttcp.c \
  87.        ${srcdir}${SL}strippath.c \
  88.        ${srcdir}${SL}getdate.c \
  89.        ${srcdir}${SL}getpass.c
  90.  
  91. # sources we use from the common src dir, ..${SL}src
  92. COMMON_SOURCES = \
  93.        ${cvs_srcdir}${SL}add.c \
  94.        ${cvs_srcdir}${SL}admin.c \
  95.        ${cvs_srcdir}${SL}checkin.c \
  96.        ${cvs_srcdir}${SL}checkout.c \
  97.        ${cvs_srcdir}${SL}classify.c \
  98.        ${cvs_srcdir}${SL}client.c \
  99.        ${cvs_srcdir}${SL}commit.c \
  100.        ${cvs_srcdir}${SL}create_adm.c \
  101.        ${cvs_srcdir}${SL}cvsrc.c \
  102.        ${cvs_srcdir}${SL}diff.c \
  103.        ${cvs_srcdir}${SL}edit.c \
  104.        ${cvs_srcdir}${SL}entries.c \
  105.        ${cvs_srcdir}${SL}error.c \
  106.        ${cvs_srcdir}${SL}expand_path.c \
  107.        ${cvs_srcdir}${SL}fileattr.c \
  108.        ${cvs_srcdir}${SL}find_names.c \
  109.        ${cvs_srcdir}${SL}hash.c \
  110.        ${cvs_srcdir}${SL}history.c \
  111.        ${cvs_srcdir}${SL}ignore.c \
  112.        ${cvs_srcdir}${SL}import.c \
  113.        ${cvs_srcdir}${SL}lock.c \
  114.        ${cvs_srcdir}${SL}log.c \
  115.        ${cvs_srcdir}${SL}login.c \
  116.        ${cvs_srcdir}${SL}logmsg.c \
  117.        ${cvs_srcdir}${SL}main.c \
  118.        ${cvs_srcdir}${SL}mkmodules.c \
  119.        ${cvs_srcdir}${SL}modules.c \
  120.        ${cvs_srcdir}${SL}myndbm.c \
  121.        ${cvs_srcdir}${SL}no_diff.c \
  122.        ${cvs_srcdir}${SL}parseinfo.c \
  123.        ${cvs_srcdir}${SL}patch.c \
  124.        ${cvs_srcdir}${SL}rcs.c \
  125.        ${cvs_srcdir}${SL}rcscmds.c \
  126.        ${cvs_srcdir}${SL}recurse.c \
  127.        ${cvs_srcdir}${SL}release.c \
  128.        ${cvs_srcdir}${SL}remove.c \
  129.        ${cvs_srcdir}${SL}repos.c \
  130.        ${cvs_srcdir}${SL}root.c \
  131.        ${cvs_srcdir}${SL}rtag.c \
  132.        ${cvs_srcdir}${SL}scramble.c \
  133.        ${cvs_srcdir}${SL}server.c \
  134.        ${cvs_srcdir}${SL}status.c \
  135.        ${cvs_srcdir}${SL}subr.c \
  136.        ${cvs_srcdir}${SL}tag.c \
  137.        ${cvs_srcdir}${SL}update.c \
  138.        ${cvs_srcdir}${SL}watch.c \
  139.        ${cvs_srcdir}${SL}wrapper.c \
  140.        ${cvs_srcdir}${SL}vers_ts.c \
  141.        ${cvs_srcdir}${SL}version.c
  142. # end of $COMMON_SOURCES
  143.  
  144. # sources from ..${SL}lib
  145. LIB_SOURCES = \
  146.        ${lib_dir}${SL}getopt.c \
  147.        ${lib_dir}${SL}getopt1.c \
  148.        ${lib_dir}${SL}getline.c \
  149.        ${lib_dir}${SL}getwd.c \
  150.        ${lib_dir}${SL}savecwd.c \
  151.        ${lib_dir}${SL}sighandle.c \
  152.        ${lib_dir}${SL}yesno.c \
  153.        ${lib_dir}${SL}vasprintf.c \
  154.        ${lib_dir}${SL}xgetwd.c \
  155.        ${lib_dir}${SL}md5.c \
  156.        ${lib_dir}${SL}fnmatch.c \
  157.        ${lib_dir}${SL}regex.c
  158.  
  159. # object files from OS/2 sources
  160. OS2_OBJECTS = \
  161.        ${srcdir}${SL}mkdir.obj \
  162.        ${srcdir}${SL}pwd.obj \
  163.        ${srcdir}${SL}filesubr.obj \
  164.        ${srcdir}${SL}dirent.obj \
  165.        ${srcdir}${SL}run.obj \
  166.        ${srcdir}${SL}stripslash.obj \
  167.        ${srcdir}${SL}rcmd.obj \
  168.        ${srcdir}${SL}waitpid.obj \
  169.        ${srcdir}${SL}popen.obj \
  170.        ${srcdir}${SL}porttcp.obj \
  171.        ${srcdir}${SL}strippath.obj \
  172.        ${srcdir}${SL}getdate.obj \
  173.        ${srcdir}${SL}getpass.obj
  174.  
  175. # object files from ..${SL}src
  176. COMMON_OBJECTS = \
  177.        ${cvs_srcdir}${SL}add.obj \
  178.        ${cvs_srcdir}${SL}admin.obj \
  179.        ${cvs_srcdir}${SL}checkin.obj \
  180.        ${cvs_srcdir}${SL}checkout.obj \
  181.        ${cvs_srcdir}${SL}classify.obj \
  182.        ${cvs_srcdir}${SL}client.obj \
  183.        ${cvs_srcdir}${SL}commit.obj \
  184.        ${cvs_srcdir}${SL}create_adm.obj \
  185.        ${cvs_srcdir}${SL}cvsrc.obj \
  186.        ${cvs_srcdir}${SL}diff.obj \
  187.        ${cvs_srcdir}${SL}edit.obj \
  188.        ${cvs_srcdir}${SL}entries.obj \
  189.        ${cvs_srcdir}${SL}error.obj \
  190.        ${cvs_srcdir}${SL}expand_path.obj \
  191.        ${cvs_srcdir}${SL}fileattr.obj \
  192.        ${cvs_srcdir}${SL}find_names.obj \
  193.        ${cvs_srcdir}${SL}hash.obj \
  194.        ${cvs_srcdir}${SL}history.obj \
  195.        ${cvs_srcdir}${SL}ignore.obj \
  196.        ${cvs_srcdir}${SL}import.obj \
  197.        ${cvs_srcdir}${SL}lock.obj \
  198.        ${cvs_srcdir}${SL}log.obj \
  199.        ${cvs_srcdir}${SL}login.obj \
  200.        ${cvs_srcdir}${SL}logmsg.obj \
  201.        ${cvs_srcdir}${SL}main.obj \
  202.        ${cvs_srcdir}${SL}mkmodules.obj \
  203.        ${cvs_srcdir}${SL}modules.obj \
  204.        ${cvs_srcdir}${SL}myndbm.obj \
  205.        ${cvs_srcdir}${SL}no_diff.obj \
  206.        ${cvs_srcdir}${SL}parseinfo.obj \
  207.        ${cvs_srcdir}${SL}patch.obj \
  208.        ${cvs_srcdir}${SL}rcs.obj \
  209.        ${cvs_srcdir}${SL}rcscmds.obj \
  210.        ${cvs_srcdir}${SL}recurse.obj \
  211.        ${cvs_srcdir}${SL}release.obj \
  212.        ${cvs_srcdir}${SL}remove.obj \
  213.        ${cvs_srcdir}${SL}repos.obj \
  214.        ${cvs_srcdir}${SL}root.obj \
  215.        ${cvs_srcdir}${SL}rtag.obj \
  216.        ${cvs_srcdir}${SL}scramble.obj \
  217.        ${cvs_srcdir}${SL}server.obj \
  218.        ${cvs_srcdir}${SL}status.obj \
  219.        ${cvs_srcdir}${SL}subr.obj \
  220.        ${cvs_srcdir}${SL}tag.obj \
  221.        ${cvs_srcdir}${SL}update.obj \
  222.        ${cvs_srcdir}${SL}watch.obj \
  223.        ${cvs_srcdir}${SL}wrapper.obj \
  224.        ${cvs_srcdir}${SL}vers_ts.obj \
  225.        ${cvs_srcdir}${SL}version.obj
  226. # end of $COMMON_OBJECTS
  227.  
  228. # objects from ..${SL}lib
  229. LIB_OBJECTS = \
  230.        ${lib_dir}${SL}getopt.obj \
  231.        ${lib_dir}${SL}getopt1.obj \
  232.        ${lib_dir}${SL}getline.obj \
  233.        ${lib_dir}${SL}getwd.obj \
  234.        ${lib_dir}${SL}savecwd.obj \
  235.        ${lib_dir}${SL}sighandle.obj \
  236.        ${lib_dir}${SL}yesno.obj \
  237.        ${lib_dir}${SL}vasprintf.obj \
  238.        ${lib_dir}${SL}xgetwd.obj \
  239.        ${lib_dir}${SL}md5.obj \
  240.        ${lib_dir}${SL}fnmatch.obj \
  241.        ${lib_dir}${SL}regex.obj
  242.  
  243. SOURCES = ${COMMON_SOURCES} ${LIB_SOURCES} ${OS2_SOURCES}
  244. HEADERS = ${COMMON_HEADERS} ${OS2_HEADERS}
  245. OBJECTS = ${COMMON_OBJECTS} ${LIB_OBJECTS} ${OS2_OBJECTS}
  246.  
  247. DISTFILES = ${OS2_HEADERS} ${OS2_SOURCES} \
  248.   ${srcdir}${SL}README ${srcdir}${SL}ChangeLog \
  249.   ${srcdir}${SL}Makefile.in ${srcdir}${SL}.cvsignore \
  250.   ${srcdir}${SL}test-makefile Makefile
  251.  
  252. all:
  253.  
  254. .PHONY: all install uninstall
  255. all install uninstall:
  256.  
  257. .PHONY: tags TAGS
  258. tags TAGS:
  259.  
  260. .PHONY: ls
  261. ls:
  262.     @echo ${DISTFILES}
  263.  
  264. .PHONY: clean distclean realclean mostlyclean
  265. clean distclean realclean mostlyclean:
  266.  
  267. .PHONY: lint
  268. lint:
  269.  
  270. .PHONY: dist-dir
  271. dist-dir:
  272.     mkdir ${DISTDIR}
  273.     for i in ${DISTFILES}; do \
  274.       ln $${i} ${DISTDIR}; \
  275.     done
  276.  
  277. # We don't have a real distclean or anything like that, but at least
  278. # we can get rid of the obj files and cvs.exe. 
  279. clean:
  280.     rm -f cvs.exe
  281.     rm -f ${srcdir}${SL}*.obj 
  282.     rm -f ${lib_dir}${SL}*.obj 
  283.     rm -f ${cvs_srcdir}${SL}*.obj 
  284.  
  285. install-cvs: cvs.exe
  286.     cp ${srcdir}${SL}cvs.exe ${install_dir}${SL}cvs.exe
  287.  
  288. %.obj: %.c
  289.     icc ${OBJ_CFLAGS} ${CFLAGS} /Fo$@ $*.c
  290.  
  291. # There seems to be no ICC option for specifying library locations, so
  292. # we must `set' the path in the compilation environment.  Urgkle. 
  293. cvs.exe: ${OBJECTS}
  294.     echo Creating icc.in...
  295.     echo -Q+ -Ti+ -Fe$@ -B"/batch" -B"/NOE" > icc.in
  296.     echo ${OS2_OBJECTS}                    >> icc.in
  297.     echo ${LIB_OBJECTS}                    >> icc.in
  298.     echo ${COMMON_OBJECTS}                 >> icc.in
  299.     echo ${TCPIPLIB}                       >> icc.in
  300.     echo ${ARGVLIB}                        >> icc.in
  301.     echo Creating icc.in... done.
  302.     set LIB=${LIB} & icc @icc.in
  303.  
  304. # cvs.obj: ${OBJECTS} ${SOURCES} ${HEADERS}
  305.  
  306. subdir = os2
  307. Makefile: ../config.status $(srcdir)/Makefile.in
  308.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  309.